<?php
class retrieve_embededinfo extends retrieve_base{

	private $module_display_options 	= array();
	
	/**
	* function produces abstract structure of modules db structure
	*
    * used to generate the table structure required abstract function that passes an abstract
	* representation of the desired table structure to the proper database module which will
	* interpet the abstract and convert it into a valid SQL Create table structure.
	*
	* @return Array list of abstract table definitions for this module
	*/
	function create_table(){
		$tables = array();

		/**
		* Table structure for table 'embed_libertas_form'
		*/
		
		$fields = array(
			array("embed_identifier"		,"unsigned integer"	,"NOT NULL"	,"auto_increment","key"),
			array("trans_identifier"		,"unsigned integer"	,"NOT NULL"	,"default '0'"),
			array("client_identifier"		,"unsigned integer"	,"NOT NULL"	,"default '0'"),
			array("form_int_identifier"		,"unsigned integer"	,"NOT NULL"	,"default '0'"),
			array("form_str_identifier"		,"varchar(255)"		,"NOT NULL"	,"default ''"),
			array("module_starter"			,"varchar(50)"		,"NOT NULL"	,"default ''"),
			array("editor"					,"varchar(255)"		,"NOT NULL"	,"default ''")
		);
		
		$primary ="embed_identifier";
		$tables[count($tables)] = array("embed_libertas_form", $fields, $primary);
		/**
		* Table structure for table 'embed_libertas_image'
		*/
		
		$fields = array(
			array("embed_identifier"		,"unsigned integer"	,"NOT NULL"	,"auto_increment","key"),
			array("client_identifier"		,"unsigned integer"	,"NOT NULL"	,"default '0'"),
			array("trans_identifier"		,"unsigned integer"	,"NOT NULL"	,"default '0'"),
			array("image_tag"				,"varchar(255)"		,"NOT NULL"	,"default ''"),
			array("module_starter"			,"varchar(50)"		,"NOT NULL"	,"default ''")
		);
		
		$primary ="embed_identifier";
		$tables[count($tables)] = array("embed_libertas_image", $fields, $primary);
		/**
		* Table structure for table 'embed_libertas_file'
		*/
		
		$fields = array(
			array("embed_identifier"		,"unsigned integer"	,"NOT NULL"	,"auto_increment","key"),
			array("client_identifier"		,"unsigned integer"	,"NOT NULL"	,"default '0'"),
			array("trans_identifier"		,"unsigned integer"	,"NOT NULL"	,"default '0'"),
			array("file_tag"				,"varchar(255)"		,"NOT NULL"	,"default ''"),
			array("module_starter"			,"varchar(50)"		,"NOT NULL"	,"default ''")
		);
		$primary ="embed_identifier";
		$tables[count($tables)] = array("embed_libertas_file", $fields, $primary);
		/**
		* Table structure for table 'embed_libertas_link'
		*/
		$fields = array(
			array("embed_identifier"	,"unsigned integer"			,"NOT NULL"	,"auto_increment","key"),
			array("client_identifier"	,"unsigned integer"			,"NOT NULL"	,"default '0'"),
			array("menu_identifier"		,"unsigned integer"			,"NOT NULL"	,"default '0'"),
			array("src_identifier"		,"unsigned integer"			,"NOT NULL"	,"default '0'"),
			array("dst_identifier"		,"unsigned integer"			,"NOT NULL"	,"default '0'"),
			array("module_starter"		,"varchar(50)"				,"NOT NULL"	,"default ''"),
			array("editor"				,"varchar(50)"				,"NOT NULL"	,"default ''"),
			array("destination_url"		,"text"						,"NOT NULL"	,"default ''"),
			array("broken" 				,"unsigned small integer"	,""			,"default '0'")
		);
		$primary ="embed_identifier";
		$tables[count($tables)] = array("embed_libertas_link", $fields, $primary);
		


		return $tables;
	}

}
?>